package com.meng.model.upload;

import com.meng.model.PointOfSale;
import io.netty.buffer.ByteBuf;

import java.io.UnsupportedEncodingException;
import java.util.List;


/**
 * 上传黑名单记录
 *
 * @author MENG
 * @version 2018/4/4
 * @see
 */
public class UploadBlackListRecord extends PointOfSale
{
    /**
     * 上传黑名单记录ID
     */
    private String ublrid;

    /**
     * 记录类型
     */
    private String rty;

    /**
     * 本次交易设备编号
     */
    private String pid;

    /**
     * 本次交易日期时间
     */
    private String tim;

    /**
     * 票卡逻辑卡号
     */
    private String icn;

    /**
     * 票卡物理卡号
     */
    private String fcn;

    /**
     * 备用
     */
    private String spare;

    public String getUblrid()
    {
        return ublrid;
    }

    public void setUblrid(String ublrid)
    {
        this.ublrid = ublrid;
    }

    public String getRty()
    {
        return rty;
    }

    public void setRty(String rty)
    {
        this.rty = rty;
    }

    public String getPid()
    {
        return pid;
    }

    public void setPid(String pid)
    {
        this.pid = pid;
    }

    public String getTim()
    {
        return tim;
    }

    public void setTim(String tim)
    {
        this.tim = tim;
    }

    public String getIcn()
    {
        return icn;
    }

    public void setIcn(String icn)
    {
        this.icn = icn;
    }

    public String getFcn()
    {
        return fcn;
    }

    public void setFcn(String fcn)
    {
        this.fcn = fcn;
    }

    public String getSpare()
    {
        return spare;
    }

    public void setSpare(String spare)
    {
        this.spare = spare;
    }

    /**
     * 消息解码
     *
     * @param byteBuf
     * @return
     * @throws UnsupportedEncodingException
     */
    @Override
    public List<PointOfSale> decoderBody(ByteBuf byteBuf,short length) throws UnsupportedEncodingException
    {
        return null;
    }

    @Override
    public String toString()
    {
        return "UploadBlackListRecord{" +
               "ublrid='" + ublrid + '\'' +
               ", rty='" + rty + '\'' +
               ", pid='" + pid + '\'' +
               ", tim='" + tim + '\'' +
               ", icn='" + icn + '\'' +
               ", fcn='" + fcn + '\'' +
               ", spare='" + spare + '\'' +
               '}';
    }
}
